
import React from 'react'
import ReactDOM from 'react-dom'
import 'antd/dist/antd.css'

import md5 from 'js-md5'
import moment from "moment";
import axios from 'axios'
import App from './App'
// import store from "./store/store";
import 'lib-flexible'
import {BrowserRouter} from "react-router-dom";

import {Provider} from "react-redux";
// import reducer from './store/reducer'
//
// import finalCreateStore from "./store/configure";

// const demo1 = asyncComponent(() => import(/* webpackChunkName: 'demo1' */ './demo1'));
// const demo2 = asyncComponent(() => import(/* webpackChunkName: 'demo2' */ './demo2'));
import store from './store'

React.Component.prototype.$moment = moment
React.Component.prototype.$http = axios
React.Component.prototype.$md5 = md5
React.Component.prototype.$store = store


ReactDOM.render(
    <BrowserRouter>
        <Provider store={store}>
            <App/>
        </Provider>
    </BrowserRouter>,
    document.getElementById('root'))
